/*
 * type_def.h
 *
 *  Created on: 2011-7-14
 *      Author: minorityee1984@gmail.com
 *     Purpose: 跨平台類型定義
 *        Note: 各平台必須實現自己的目錄下實現type.h保證數據寬度相同  並且在編譯時開啟預編譯宏
 *              如：gcc -c test_main.c -DAGENT_SERVER_TYPEDEF
 */

#ifndef TYPE_DEF_H_
#define TYPE_DEF_H_


#ifdef CLIENT_TYPEDEF
#include "../client/type.h"
#elif AGENT_SERVER_TYPEDEF
#include "../agentserver/type.h"
#else
#include "../sensor/type.h"
#endif


typedef __int8_t__		int8_t;
typedef __uint8_t__		uint8_t;

typedef __Byte__		Byte;

typedef __int16_t__		int16_t;
typedef __uint16_t__	uint16_t;

typedef __int32_t__		int32_t;
typedef __uint32_t__	uint32_t;

#ifndef Interface
#define Interface struct
#endif

#endif /* TYPE_DEF_H_ */
